package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.zzyl.nursing.dto.DoTaskDto;
import com.zzyl.nursing.dto.RescheduleTaskDto;
import com.zzyl.nursing.vo.NursingTaskDetailVo;

import java.util.List;

/**
 * 护理任务Service接口
 *
 * @author ruoyi
 * @date 2024-09-27
 */
public interface INursingTaskService extends IService<NursingTask>
{
    /**
     * 生成护理任务
     * @param elder
     */
    void createMonthTask(Elder elder);

    /**
     * 查询护理任务列表
     * @param nursingTask
     * @return
     */
    List<NursingTask> selectNursingTaskList(NursingTask nursingTask);

    /**
     * 查询护理任务详情
     * @param id
     * @return
     */
    NursingTaskDetailVo getNursingTaskDetailById(Long id);

    /**
     * 取消护理任务
     * @param taskId
     * @param reason
     */
    void cancelNursingTask(Long taskId, String reason);

    /**
     * 执行护理任务
     * @param dto
     */
    void doTask(DoTaskDto dto);

    /**
     * 修改护理任务时间
     * @param dto
     */
    void rescheduleNursingTask(RescheduleTaskDto dto);



}
